package tools;

import java.io.IOException;
import java.util.Properties;

public class PropertyReader {

	public static String getProperty(String sourceFile, String key) {
		Properties prop = new Properties();
		try {
			prop.load(PropertyReader.class.getResourceAsStream("/"+sourceFile));
			String value = prop.getProperty(key);
			return value;
		} catch (IOException e) {
			e.printStackTrace();
		}
		return null;
	}
}
